package cases.control 
{
	import org.despair2D.ui.SectionButton;

	public class AnimeButtonController 
	{
		
		public function AnimeButtonController(B:SectionButton) 
		{
			B.addLeaveEffectListener(function():void {B.bindingPuppet.createActionReaction('right_run', 'colonist_32_32',true).play() } )
			//B.registerPressListener(function():void { B.bindingPuppet.createActionReaction('right_jump', null, true).play() } )
			//B.registerOverListener(function():void { B.bindingPuppet.createActionReaction('right_run', null, true).play() } )
			B.addHoverEffectListener(function():void { if(B.bindingPuppet.section != 'gunner_40_32'){B.bindingPuppet.createActionReaction('right_run', 'gunner_40_32', true).play()}  } )
			//B.registerPressListener(function():void { } )
		}
				
	}

}